#!/usr/bin/env python
# -*- coding: utf-8 -*-

class ResponsibilityChainDto:
    """
    职责链设计模式的参数对象
    """

    def __init__(self, transaction_date: str = None, has_underweight: bool = False, has_overweight: bool = False, has_update_optimize2_account_after_close_position: bool = False, has_update_optimize2_account_after_open_position: bool = False):
        super().__init__()

        # 日期
        self.transaction_date = transaction_date

        # 表示是否已经执行过减仓
        self.has_underweight = has_underweight

        # 表示是否已经执行过加仓
        self.has_overweight = has_overweight

        # 是否已经执行过update_optimize2_account_after_close_position
        self.has_update_optimize2_account_after_close_position = has_update_optimize2_account_after_close_position

        # 是否已经执行过update_optimize2_account_after_open_position
        self.has_update_optimize2_account_after_open_position = has_update_optimize2_account_after_open_position
